package com.gouaixin.bee.beeframework2.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.gouaixin.bee.beeframework2.R;
import com.gouaixin.bee.beeframework2.model.DialogModel;

/**
 * Created by Administrator on 2015/3/10.
 */
//我的爱币界面
public class D_aibi_hongniangActivity extends FragmentActivity {
    Context context=D_aibi_hongniangActivity.this;
    String titleName;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.b13_aibi);


        
        initHead();
        initContent();

    }


    /***
     * 内容区域的监听
     */
    private void initContent() {
        TextView kt01,kt02,kt03;
        kt01= (TextView) findViewById(R.id.kt01);
        kt02= (TextView) findViewById(R.id.kt02);
        kt03= (TextView) findViewById(R.id.kt03);

        kt01.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,B16_yuanfenHongniangyueActivity.class);
                DialogModel.toActivity(context, it, "红娘服务", getResources().getString(R.string.aibi_hongniang));

            }
        });

        kt02.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,B16_yuanfenHongniangyueActivity.class);
                DialogModel.toActivity(context, it, "红娘服务", getResources().getString(R.string.aibi_hongniang));

            }
        });

        kt03.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,B16_yuanfenHongniangyueActivity.class);
                DialogModel.toActivity(context, it, "红娘服务", getResources().getString(R.string.aibi_hongniang));

            }
        });





    }

    /***
     * 头部的监听
     */
    private void initHead() {
        //顶部
        ImageView back;//返回
        TextView title;//标题

        back= (ImageView) findViewById(R.id.back);
        title= (TextView) findViewById(R.id.title);



        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    /**
     * 监听返回键
     */
    @Override
    public void onBackPressed() {
//        super.onBackPressed();
//        AbToastUtil.showToast(context, "你点击了返回键");
    }
}
